package com.fulin.jvm.classLoader;

import java.util.UUID;

/**
*
* @description 
* @auther fulin16@crnet.com.hk
* @since 2019年3月20日 下午3:12:03
*
*/
public class Main {
	public static void main(String[] args) {
//		System.out.println(Child.name);
//		System.out.println(Child.age);
//		System.out.println(Child.uuid);
//		Child.get();
//		Child child = new Child();
		
//		Child[][] arr = new Child[1][1];
//		System.out.println(arr.getClass().getSuperclass());
		
//		System.out.println(C.b);
		Singlebean instance = Singlebean.getInstance();
		
		System.out.println(instance.getClass().getClassLoader());
		Singlebean[] arr = new Singlebean[2];
		System.out.println(arr.getClass().getClassLoader());
	}
}

interface P{
	public static int a = 5;
}

interface C extends P{
	public static int b = 6;
}

class Parent{
	public static String name = "parent";
	
	static{
		System.out.println("parent static");
	}
}

class Child extends Parent{
	public static final String uuid = UUID.randomUUID().toString();
	public static final String age = "21";
	static{
		System.out.println("child static");
	}
	
	public static void get(){
		System.out.println(age);
	}
}
